package com.insight.dto.collection;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 采集任务健康检查响应DTO
 *
 * @author Insight Team
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "采集任务健康检查响应")
public class TaskHealthResponse {

    @Schema(description = "健康状态: HEALTHY, UNHEALTHY, WARNING", example = "HEALTHY")
    private String healthStatus;

    @Schema(description = "运行时长(分钟)", example = "5")
    private Long runningMinutes;

    @Schema(description = "健康检查消息", example = "任务正常运行")
    private String message;

    @Schema(description = "是否建议取消", example = "false")
    private Boolean recommendCancel;

    @Schema(description = "任务ID", example = "3")
    private Long taskId;

    @Schema(description = "任务状态", example = "RUNNING")
    private String status;
}
